package com.oracle.application.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 朱荣豪
 * @since 2021-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Member对象", description = "")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "权限")
    private Integer rolename;

    @ApiModelProperty(value = "用户名")
    private String loginname;

    @ApiModelProperty(value = "密码")
    private String loginpwd;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdate;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime modifydate;

    @ApiModelProperty(value = "过期时间")
    private LocalDateTime lockexpiredate;

    @ApiModelProperty(value = "登录失败次数")
    private Integer failcount;

    @ApiModelProperty(value = "状态 0-正常 1-锁定 2-未激活")
    private Integer status;


}
